package com.dman.multi.cmd;

import org.apache.pivot.wtk.Dialog;

import com.dman.multi.ui.DMan;

public class GUISettingsCommand implements Command {
	
	private Dialog settingsDialog = null;
	private DMan parent;
	
	public GUISettingsCommand(DMan parent) {
		this.parent = parent;
	}

	@Override
	public void execute() {
		if(settingsDialog == null){
			settingsDialog = parent.getSettingsDialog();
		}
		settingsDialog.open(parent);
	}

}
